"""cinema_ticketing_system_web URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.conf.urls import url,include
from cin_tic_sal import urls as app1_urls
from cinema_app import urls as app2_urls
from movie_app import urls as app3_urls
from news_app import urls as app4_urls
from top_app import urls as app5_urls
from user_app import urls as app6_urls
from pay_app import urls as app7_urls
from search_app import urls as app8_urls
from cinema_manage import urls as app9_urls
from news_app import views
from cin_tic_sal import urls as app10_urls
from django.urls import path, include

from django.conf.urls import url
from django.contrib import admin
from tool import views as tool_views
#from django.conf.urls import url

urlpatterns = (
    path('',views.toindex),
    path('sale/',include(app1_urls)),
    path('movie/',include(app3_urls)),
    path('cinema/',include(app2_urls)),
    path('news/',include(app4_urls)),
    path('top/',include(app5_urls)),
    path('user/',include(app6_urls)),
    path('pay/',include(app7_urls)),
    path('search/',include(app8_urls)),
    path('manage/',include(app9_urls)),
    path('buy',include(app10_urls)),
#    url(r'^admin/', admin.site.urls),
	url(r'^tool/ip/$', tool_views.ip_api),
	url(r'^tool/dict/$', tool_views.dic),
    url(r'^tool/position/$', tool_views.position),
)
